package com.ow.dva.module.park.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ow.dva.module.base.entity.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 停车场表
 * </p>
 *
 * @author YanZengBao
 * @since 2020-02-19
 * @version V1.0
 */
@TableName("dva_park")
@ApiModel(value="Park对象", description="停车场表")
public class Park implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty(value = "编号(不允许重复)")
    private String number;

    @ApiModelProperty(value = "停车场名称")
    private String name;

    @ApiModelProperty(value = "停车场类型（0-封闭停车场 1-。。。）")
    private Integer parkType;

    @ApiModelProperty(value = "省")
    private String province;

    @ApiModelProperty(value = "市")
    private String city;

    @ApiModelProperty(value = "区县")
    private String county;

    @ApiModelProperty(value = "详细地址")
    private String address;

    @ApiModelProperty(value = "经度")
    private String longitude;

    @ApiModelProperty(value = "纬度")
    private String latitude;

    @ApiModelProperty(value = "是否对临时车开放(0:暂不开放 1:开放)")
    private Integer openStatus;

    @ApiModelProperty(value = "是否收费（0：不收费 1:收费）")
    private Integer feeStatus;

    @ApiModelProperty(value = "是否允许超位入场（0-允许 1-禁止）")
    private Integer overParkinglotStatus;

    @ApiModelProperty(value = "停车场图片")
    private String imgUrl;

    @ApiModelProperty(value = "车位总数")
    private Integer parkinglotTotal;

    @ApiModelProperty(value = "剩余车位数")
    private Integer parkinglotSurplus;

    @ApiModelProperty(value = "开放时间起")
    private String openStartTime;

    @ApiModelProperty(value = "开放时间止")
    private String openStopTime;

    @ApiModelProperty(value = "备注")
    private String intro;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "终端id")
    private String terminaId;
    @ApiModelProperty(value = "终端编号")
    private String terminaCode;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public Integer getParkType() {
        return parkType;
    }

    public void setParkType(Integer parkType) {
        this.parkType = parkType;
    }
    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }
    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }
    public String getCounty() {
        return county;
    }

    public void setCounty(String county) {
        this.county = county;
    }
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }
    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }
    public Integer getOpenStatus() {
        return openStatus;
    }

    public void setOpenStatus(Integer openStatus) {
        this.openStatus = openStatus;
    }
    public Integer getFeeStatus() {
        return feeStatus;
    }

    public void setFeeStatus(Integer feeStatus) {
        this.feeStatus = feeStatus;
    }
    public Integer getOverParkinglotStatus() {
        return overParkinglotStatus;
    }

    public void setOverParkinglotStatus(Integer overParkinglotStatus) {
        this.overParkinglotStatus = overParkinglotStatus;
    }
    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }
    public Integer getParkinglotTotal() {
        return parkinglotTotal;
    }

    public void setParkinglotTotal(Integer parkinglotTotal) {
        this.parkinglotTotal = parkinglotTotal;
    }
    public Integer getParkinglotSurplus() {
        return parkinglotSurplus;
    }

    public void setParkinglotSurplus(Integer parkinglotSurplus) {
        this.parkinglotSurplus = parkinglotSurplus;
    }
    public String getOpenStartTime() {
        return openStartTime;
    }

    public void setOpenStartTime(String openStartTime) {
        this.openStartTime = openStartTime;
    }
    public String getOpenStopTime() {
        return openStopTime;
    }

    public void setOpenStopTime(String openStopTime) {
        this.openStopTime = openStopTime;
    }
    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getTerminaId() {
        return terminaId;
    }

    public void setTerminaId(String terminaId) {
        this.terminaId = terminaId;
    }

    public String getTerminaCode() {
        return terminaCode;
    }

    public void setTerminaCode(String terminaCode) {
        this.terminaCode = terminaCode;
    }

    @Override
    public String toString() {
        return "Park{" +
            "id=" + id +
            ", number=" + number +
            ", name=" + name +
            ", parkType=" + parkType +
            ", province=" + province +
            ", city=" + city +
            ", county=" + county +
            ", address=" + address +
            ", longitude=" + longitude +
            ", latitude=" + latitude +
            ", openStatus=" + openStatus +
            ", feeStatus=" + feeStatus +
            ", overParkinglotStatus=" + overParkinglotStatus +
            ", imgUrl=" + imgUrl +
            ", parkinglotTotal=" + parkinglotTotal +
            ", parkinglotSurplus=" + parkinglotSurplus +
            ", openStartTime=" + openStartTime +
            ", openStopTime=" + openStopTime +
            ", intro=" + intro +
            ", createTime=" + createTime +
        "}";
    }

    public Park(){}


    public Park(String id, String number, String name, Integer parkType, String province, String city, String county, String address, String longitude, String latitude, Integer openStatus, Integer feeStatus, Integer overParkinglotStatus, String imgUrl, Integer parkinglotTotal, Integer parkinglotSurplus, String openStartTime, String openStopTime, String intro, Date createTime) {
        this.id = id;
        this.number = number;
        this.name = name;
        this.parkType = parkType;
        this.province = province;
        this.city = city;
        this.county = county;
        this.address = address;
        this.longitude = longitude;
        this.latitude = latitude;
        this.openStatus = openStatus;
        this.feeStatus = feeStatus;
        this.overParkinglotStatus = overParkinglotStatus;
        this.imgUrl = imgUrl;
        this.parkinglotTotal = parkinglotTotal;
        this.parkinglotSurplus = parkinglotSurplus;
        this.openStartTime = openStartTime;
        this.openStopTime = openStopTime;
        this.intro = intro;
        this.createTime = createTime;
    }
}
